gadgetsettexteditorpos()

Description:

Set the position for the view area in gadgettexteditor(), gadgettextselection() gadgets.

Note: this command will only work with the gadgettexteditor() or gadgettextselection() gadget.

Syntax:

Required syntax:

 

gadgetsettexteditorpos( gadgethandle , x# , y# )

 

Parameters:

Required parameters

Description

gadgethandle The handle to the gadgets view area, you wish to set the position of
x# The horizontal position:

If x#<=1

This will move the view area the specified percentage across.

i.e. 0.5 = 50 % = half way across.

else

move the view area at pixel position

y# The vertical position:

If y#<=1

This will move the view area the specified percentage down.

i.e. 0.5 = 50 % = half way down.

else

move the view area at pixel position

Returns:

None

Example: